<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.util.List"%>
<%@ page import="com.manage.servicecenter.ServiceCenterMessageBJVo"%>
<%@ page import="com.manage.dictionary.DictionaryAction"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List<ServiceCenterMessageBJVo> list = (List)request.getAttribute("queryMakingList");
String filter_messageType = (String)request.getAttribute("filter_messageType");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="<%=basePath%>/images/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=path%>/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
    function goDetail(id) {
    	$('#id').val(id);
    	$('#qqbzdetailform')[0].action = "<%=path%>/servicecenter/queryMakingDetail.action";
		$('#qqbzdetailform')[0].submit();
	}
	
	function query() {
		$('#qqbzdetailform')[0].action = "<%=path%>/servicecenter/queryMakingList.action";
		$('#qqbzdetailform')[0].submit();
	}
</script>
</head>

<body class="bg_003">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="201" height="30" align="center" background="<%=basePath%>/images/016.jpg"><table width="75%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="25"><img src="<%=basePath%>/images/1.png" width="16" height="16"></td>
        <td><strong>办结信息</strong></td>
      </tr>
    </table></td>
    <td align="right" background="<%=basePath%>/images/017.jpg" class="zi_006">服务中心</td>
    <td width="39"><img src="<%=basePath%>/images/018.jpg" width="39" height="30"></td>
  </tr>
</table>
<form action="" name = "qqbzdetailform" id = "qqbzdetailform">
<input type="hidden" name="serviceCenterMessageVo.id" id="id"/>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1" bgcolor="#e1e1e2"></td>
        <td height="298" align="center">
        	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e1e1">
	          <tr>
	            <td width="85%" height="31" bgcolor="#f5f5f5" colspan="8">
	                查询类别：
	              <select id="qqbz_type" name="serviceCenterMessageVo.messagetype">
	              <option value="">------请选择-----</option>
	              <%
		              	for (int i=0; i<DictionaryAction.DIC_PROGRAM_TYPE.size(); i++) {
	              		String lb = DictionaryAction.DIC_PROGRAM_TYPE.get(i);
	              		String isOpt = "";
	              		if (filter_messageType!=null && lb.equals(filter_messageType)) {
	              			isOpt = "selected";
	              		}
	              %>
	              	<option value="<%=lb%>" <%=isOpt%>><%=lb%></option>
	              <%
	              	}
	              %>&nbsp;&nbsp;&nbsp;&nbsp;
	              </select>
	              <input type="submit" onclick="query()" value=" 查 询 ">
	            </td>
	          </tr>
	          <tr>
	            <td width="10%" height="31" bgcolor="#f5f5f5">
	              序号
	            </td>
	            <td width="15%" height="31" bgcolor="#f5f5f5">
	              求助类别
	            </td>
	            <td width="15%" height="31" bgcolor="#f5f5f5">
	              回复时间
	            </td>	
	            <td width="10%" height="31" bgcolor="#f5f5f5">
	              申请人
	            </td>
	            <td width="10%" height="31" bgcolor="#f5f5f5">
	              办结人
	            </td>
	            <td width="10%" height="31" bgcolor="#f5f5f5">
	              办结性质
	            </td>
	            <td width="20%" height="31" bgcolor="#f5f5f5">
	              办结评价
	            </td>
	            <td width="10%" height="31" bgcolor="#f5f5f5">
	              查看
	            </td>
	          </tr>
	          <%
	          	for (int i=0; null!=list && i<list.size(); i++) {
	          		ServiceCenterMessageBJVo vo = list.get(i);
	          %>
	          <tr>
	            <td width="10%" height="31" bgcolor="#f5f5f5"><%=vo.getId()%></td>
	            <td width="15%" height="31" bgcolor="#f5f5f5"><%=vo.getMessagetype()%></td>
	            <td width="15%" height="31" bgcolor="#f5f5f5"><%=vo.getCreatedate()%></td>
	            <td width="10%" height="31" bgcolor="#f5f5f5"><%=vo.getSenduserid()%></td>
	            <td width="10%" height="31" bgcolor="#f5f5f5"><%=vo.getUserid()%></td>
	            <td width="10%" height="31" bgcolor="#f5f5f5"><%=vo.getType()%></td>
	            <%
	            	String evaluate = "";
	            	if(null!=vo.getEvaluate()) {
	            		evaluate = vo.getEvaluate();
	            	}
	            %>
	            <td width="20%" height="31" bgcolor="#f5f5f5"><%=evaluate%></td>
	            <td width="10%" height="31" bgcolor="#f5f5f5">
	              <input type="button" value="详细内容" onclick="goDetail('<%=vo.getId()%>')"/>
	            </td>
	          </tr>
	          <%
	          	}
	          %>
	        </table>
        </td>
        <td width="1" bgcolor="#e1e1e2"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="5" height="5"><img src="<%=basePath%>/images/019.jpg" width="5" height="5"></td>
        <td width="100%" height="5" class="bg_002"></td>
        <td width="5" height="5"><img src="<%=basePath%>/images/020.jpg" width="5" height="5"></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="603" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="26">&nbsp;</td>
  </tr>
</table>
</body>

</html>